package com.fishery.search.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fishery.search.entity.Diagnose;
import org.apache.ibatis.annotations.Param;

public interface DiagnoseMapper extends BaseMapper<Diagnose> {
	/**
	 * 通过用户id和文章id修改文章
	 *
	 * @param diagnose
	 * @return
	 */
	int updateByIdAndUserId(Diagnose diagnose);

	/**
	 * 通过文章id增加对应文章到阅读量
	 *
	 * @param articleId
	 * @param readAmount
	 */
	int increaseReadAmountOfArticle(@Param("articleId") String articleId,
									@Param("readAmount") int readAmount);
}
